package com.zsk.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ljh
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("gop配置推送消息")
public class GopPushMessage implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @ApiModelProperty(name = "name", value = "消息名称", dataType = "String")
    private String name;

    @ApiModelProperty(name = "content", value = "消息内容", dataType = "String")
    private String content;

    @ApiModelProperty(name = "isPush", value = "是否推送(如果不推送则只是站内信,推送了就是通知)", dataType = "Boolean")
    private Boolean isPush;

    @ApiModelProperty(name = "clientPushType", value = "推送客户端类型data.CLIENT_PUSH_TYPE(形如1：极光2：友盟)", dataType = "Integer")
    private Integer clientPushType;

    @ApiModelProperty(name = "isUserAll", value = "是否所有用户发送", dataType = "Boolean")
    private Boolean isUserAll;

    @ApiModelProperty(name = "phones", value = "如果不是所有用户，手机号多账号以逗号隔开", dataType = "String")
    private String phones;

    @ApiModelProperty(name = "adType", value = "广告类型@EnumADType 0不跳转 1H5", dataType = "Integer")
    private Integer adType;

    @ApiModelProperty(name = "adTip", value = "h5的话：跳转页面位置等", dataType = "String")
    private String adTip;

    @ApiModelProperty(name = "pushClientType", value = "@EnumPushClientType 0所有 1安卓 2苹果", dataType = "Integer")
    private Integer pushClientType;

    @ApiModelProperty(name = "sendStatus", value = "消息发送状态，1待发送，2已发送，3取消发送", dataType = "Integer")
    private Integer sendStatus;

    @ApiModelProperty(name = "sendTime", value = "消息发送的时间", dataType = "Date")
    private Date sendTime;

    @ApiModelProperty(name = "isDeleted", value = "是否删除，1是，在消息列表中显示消息被后台撤回", dataType = "Boolean")
    private Boolean isDeleted;

    @ApiModelProperty(name = "deleteTime", value = "删除时间", dataType = "Date")
    private Date deleteTime;

    @ApiModelProperty(name = "createUser", value = "修改者id", dataType = "Long")
    private Long createUser;

    @ApiModelProperty(name = "createTime", value = "生成时间", dataType = "Date")
    private Date createTime;

    @ApiModelProperty(name = "updateUser", value = "修改者id", dataType = "Long")
    private Long updateUser;

    @ApiModelProperty(name = "updateTime", value = "操作更新时间", dataType = "Date")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

}